﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Magicodes.IE.Demo.Common
{
    public static class FerrSQL
    {
        public static string connectionString = "Data Source = 39.105.20.156; Port = 3306; User ID = root; Password = root; Initial Catalog = demo;Charset=utf8;";
        public static IFreeSql fsql = new FreeSql.FreeSqlBuilder()
    .UseConnectionString(FreeSql.DataType.MySql, connectionString)
    .UseAutoSyncStructure(true) //自动同步实体结构到数据库
    .Build(); //请务必定义成 Singleton 单例模式
    }
}
